|
Previewing a report
It is possible to display a report in the preview window in two ways: either by calling the “TfrxReport.ShowReport” method (described above), or with the help of the “TfrxReport.ShowPreparedReport” method. In the second case, the report construction is not performed, but a finished report is displayed. That means, that you should either construct it beforehand with the help of the “PrepareReport” method, or load a previously constructed report from the file (see “Loading/saving a finished report”). Example: if frxReport1.PrepareReport then frxReport1.ShowPreparedReport; In this case, report construction is finished first, and after that it is displayed in the preview window. Construction of a large report can take a lot of time, and that is why it is better to use the “ShowReport anisochronous” method, than the “PrepareReport/ShowPreparedReport” one. One can assign preview settings by default via the “TfrxReport.PreviewOptions” property. |